package com.xin.di.uav.common.request.operate;

import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;

import java.math.BigDecimal;
import java.util.Date;

/**
 * @author ta136817
 */
@Data
public class CouponRequest {
    @ApiModelProperty("优惠券id")
    private String id;

    @ApiModelProperty("优惠券名称")
    private String couponName;

    @ApiModelProperty("优惠券类型")
    private Byte couponType;

    @ApiModelProperty("折扣")
    private BigDecimal discount;

    @ApiModelProperty("使用门槛")
    private Byte threshold;

    @ApiModelProperty("门槛金额")
    private BigDecimal thresholdAmount;

    @ApiModelProperty("发行总量")
    private Integer totalQuantity;

    @ApiModelProperty("生效时间")
    private Date effectiveTime;

    @ApiModelProperty("失效时间")
    private Date failureTime;

    @ApiModelProperty("指定用户身份类型 0-全部用户,1新用户")
    private Byte designatedUserType;

    @ApiModelProperty("领取限制")
    private Byte claimRestriction;

    @ApiModelProperty("领取次数")
    private Integer claimNum;

    @ApiModelProperty("处理人")
    private String operator;

    @ApiModelProperty("优惠券状态")
    private Byte status;

    @ApiModelProperty("事件")
    private Byte event;

    @ApiModelProperty("用户领取优惠券当日起+n-1天有效，n天截止时间为23:59:59")
    private Integer effectiveDays;
}
